package com.base.invoke.exception;

/**
 * 字段缺失异常
 * @author coolpig
 * @date 2019-09-27
 */
public class MissRequiredParamException extends BizException {

    private static final long serialVersionUID = 4936520131388224843L;

    public static final MissRequiredParamException MCH_MISS_METHOD_NAME = new MissRequiredParamException("missing-method","缺少方法名参数");


    public MissRequiredParamException(String subCode, String subMsg) {
        super(subCode, subMsg);
        super.code = 10001;
        super.msg = "缺少必选参数";
    }

    public MissRequiredParamException() {
        super();
    }


    /**
     * 我们在发生错误时抛出这个异常
     * 如下示例
     */
//    if (StringUtils.isEmpty(this.version)){
//
//        throw MissRequiredParamException.MCH_MISS_VERSION;
//    }
}
